Integrand size = 23, antiderivative size = 161 \[ \int \frac {(a+a \sec (c+d x))^4}{\sec ^{\frac {7}{2}}(c+d x)} \, dx=\frac {64 a^4 \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 d}+\frac {136 a^4 \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{21 d}+\frac {2 a^4 \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {8 a^4 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {94 a^4 \sin (c+d x)}{21 d \sqrt {\sec (c+d x)}} \]
[Out]
Time = 0.27 (sec) , antiderivative size = 161, normalized size of antiderivative = 1.00, number of steps used = 16, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {3876, 3854, 3856, 2720, 2719} \[ \int \frac {(a+a \sec (c+d x))^4}{\sec ^{\frac {7}{2}}(c+d x)} \, dx=\frac {8 a^4 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 a^4 \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {94 a^4 \sin (c+d x)}{21 d \sqrt {\sec (c+d x)}}+\frac {136 a^4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{21 d}+\frac {64 a^4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d} \]
[In]
[Out]
Rule 2719
Rule 2720
Rule 3854
Rule 3856
Rule 3876
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {a^4}{\sec ^{\frac {7}{2}}(c+d x)}+\frac {4 a^4}{\sec ^{\frac {5}{2}}(c+d x)}+\frac {6 a^4}{\sec ^{\frac {3}{2}}(c+d x)}+\frac {4 a^4}{\sqrt {\sec (c+d x)}}+a^4 \sqrt {\sec (c+d x)}\right ) \, dx \\ & = a^4 \int \frac {1}{\sec ^{\frac {7}{2}}(c+d x)} \, dx+a^4 \int \sqrt {\sec (c+d x)} \, dx+\left (4 a^4\right ) \int \frac {1}{\sec ^{\frac {5}{2}}(c+d x)} \, dx+\left (4 a^4\right ) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx+\left (6 a^4\right ) \int \frac {1}{\sec ^{\frac {3}{2}}(c+d x)} \, dx \\ & = \frac {2 a^4 \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {8 a^4 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {4 a^4 \sin (c+d x)}{d \sqrt {\sec (c+d x)}}+\frac {1}{7} \left (5 a^4\right ) \int \frac {1}{\sec ^{\frac {3}{2}}(c+d x)} \, dx+\left (2 a^4\right ) \int \sqrt {\sec (c+d x)} \, dx+\frac {1}{5} \left (12 a^4\right ) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx+\left (a^4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx+\left (4 a^4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx \\ & = \frac {8 a^4 \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{d}+\frac {2 a^4 \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{d}+\frac {2 a^4 \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {8 a^4 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {94 a^4 \sin (c+d x)}{21 d \sqrt {\sec (c+d x)}}+\frac {1}{21} \left (5 a^4\right ) \int \sqrt {\sec (c+d x)} \, dx+\left (2 a^4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx+\frac {1}{5} \left (12 a^4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx \\ & = \frac {64 a^4 \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 d}+\frac {6 a^4 \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{d}+\frac {2 a^4 \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {8 a^4 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {94 a^4 \sin (c+d x)}{21 d \sqrt {\sec (c+d x)}}+\frac {1}{21} \left (5 a^4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx \\ & = \frac {64 a^4 \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 d}+\frac {136 a^4 \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{21 d}+\frac {2 a^4 \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {8 a^4 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {94 a^4 \sin (c+d x)}{21 d \sqrt {\sec (c+d x)}} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 3.93 (sec) , antiderivative size = 180, normalized size of antiderivative = 1.12 \[ \int \frac {(a+a \sec (c+d x))^4}{\sec ^{\frac {7}{2}}(c+d x)} \, dx=\frac {a^4 \left (\cos \left (\frac {c}{2}\right )-i \sin \left (\frac {c}{2}\right )\right ) \left (\cos \left (\frac {c}{2}\right )+i \sin \left (\frac {c}{2}\right )\right ) \left (-5376 i+\frac {10752 i \operatorname {Hypergeometric2F1}\left (-\frac {1}{4},\frac {1}{2},\frac {3}{4},-e^{2 i (c+d x)}\right )}{\sqrt {1+e^{2 i (c+d x)}}}-2720 i \sqrt {1+e^{2 i (c+d x)}} \operatorname {Hypergeometric2F1}\left (\frac {1}{4},\frac {1}{2},\frac {5}{4},-e^{2 i (c+d x)}\right ) \sec (c+d x)+1910 \sin (c+d x)+336 \sin (2 (c+d x))+30 \sin (3 (c+d x))\right )}{420 d \sqrt {\sec (c+d x)}} \]
[In]
[Out]
Time = 25.63 (sec) , antiderivative size = 272, normalized size of antiderivative = 1.69
method | result | size |
default | \(-\frac {8 \sqrt {\left (2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, a^{4} \left (60 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{8}-258 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{6} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+448 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-167 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+85 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-168 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\right )}{105 \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, d}\) | \(272\) |
parts | \(\text {Expression too large to display}\) | \(858\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.12 (sec) , antiderivative size = 170, normalized size of antiderivative = 1.06 \[ \int \frac {(a+a \sec (c+d x))^4}{\sec ^{\frac {7}{2}}(c+d x)} \, dx=-\frac {2 \, {\left (170 i \, \sqrt {2} a^{4} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) - 170 i \, \sqrt {2} a^{4} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) - 336 i \, \sqrt {2} a^{4} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) + 336 i \, \sqrt {2} a^{4} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right ) - \frac {{\left (15 \, a^{4} \cos \left (d x + c\right )^{3} + 84 \, a^{4} \cos \left (d x + c\right )^{2} + 235 \, a^{4} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}\right )}}{105 \, d} \]
[In]
[Out]
\[ \int \frac {(a+a \sec (c+d x))^4}{\sec ^{\frac {7}{2}}(c+d x)} \, dx=a^{4} \left (\int \frac {1}{\sec ^{\frac {7}{2}}{\left (c + d x \right )}}\, dx + \int \frac {4}{\sec ^{\frac {5}{2}}{\left (c + d x \right )}}\, dx + \int \frac {6}{\sec ^{\frac {3}{2}}{\left (c + d x \right )}}\, dx + \int \frac {4}{\sqrt {\sec {\left (c + d x \right )}}}\, dx + \int \sqrt {\sec {\left (c + d x \right )}}\, dx\right ) \]
[In]
[Out]
\[ \int \frac {(a+a \sec (c+d x))^4}{\sec ^{\frac {7}{2}}(c+d x)} \, dx=\int { \frac {{\left (a \sec \left (d x + c\right ) + a\right )}^{4}}{\sec \left (d x + c\right )^{\frac {7}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {(a+a \sec (c+d x))^4}{\sec ^{\frac {7}{2}}(c+d x)} \, dx=\int { \frac {{\left (a \sec \left (d x + c\right ) + a\right )}^{4}}{\sec \left (d x + c\right )^{\frac {7}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(a+a \sec (c+d x))^4}{\sec ^{\frac {7}{2}}(c+d x)} \, dx=\int \frac {{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^4}{{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{7/2}} \,d x \]
[In]
[Out]